package com.ruibang.glass.produce.controller.ym;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ruibang.glass.produce.domain.req.SurfaceAmplitudeReq;
import com.ruibang.glass.produce.domain.resp.SurfaceAmplitude;
import com.ruibang.glass.produce.service.SurfaceAmplitudeService;
import com.teaming.cloud.framework2.common.model.ResultBody;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @Author: songJinKang
 * @CreateTime: 2024-01-31  17:27
 * @Description: TODO:面幅差数据控制器
 * @Version: 1.0
 */

@Api(tags = "面幅差数据控制器")
@RestController
@RequestMapping("/api/glass/produce/ym/surfaceAmplitude")
public class SurfaceAmplitudeController {

    @Autowired
    private SurfaceAmplitudeService surfaceAmplitudeService;

    @PostMapping("/pageQuery")
    @ApiOperation(value = "面幅差数据", response = ResultBody.class)
    public ResultBody<IPage<SurfaceAmplitude>> pageQuery(@RequestBody SurfaceAmplitudeReq surfaceAmplitudeReq) {
        return ResultBody.success(surfaceAmplitudeService.pageQuery(surfaceAmplitudeReq));
    }

}
